<?php
/*
* 通用的模块,用于组织零散的请求
*/
class Common extends CI_Controller{

	function __construct(){
		parent::__construct();
	}
	
	
	//获得一个验证码的图片
	function comm_getcaptcha(){
		
		$pre_captcha = ($this->input->post('pre_captcha')) ? $this->input->post('pre_captcha'):'admin';
		$cap = captcha($pre_captcha."_captcha");
		echo $cap['image'];
		die;
	}
	
}